Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zen mode button component #69

Merged
merged 9 commits into from
Apr 4, 2024
Merged

Zen mode button component #69

merged 9 commits into from
Apr 4, 2024

Conversation

bsatarnejad
Copy link

@bsatarnejad bsatarnejad commented Jan 24, 2024

What are you trying to accomplish?

We want to create a global button component to be used for zen mode. When you click on this button, if the screen is in normal mode, it will turn to a full-screen mode. If it is in full-screen mode and you click on the button again, it will be in normal mode again.

Screenshots

Screenshot 2024-01-24 at 13 33 52

List the issues that this change affects.


Risk Assessment

  • Low risk the change is small, highly observable, and easily rolled back.

What approach did you choose and why?

I render a Primer IconButton component for implementing this component and used Catalyst controller to handle click event of button.

Merge checklist

  • Added/updated tests
  • Added/updated documentation
  • Added/updated previews (Lookbook)
  • Tested in Chrome
  • Tested in Firefox
  • Tested in Safari
  • Tested in Edge

Copy link

changeset-bot bot commented Jan 24, 2024

🦋 Changeset detected

Latest commit: 4ee4c9a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@openproject/primer-view-components Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bsatarnejad bsatarnejad self-assigned this Jan 25, 2024
@bsatarnejad bsatarnejad requested a review from HDinger January 25, 2024 10:53
@HDinger HDinger force-pushed the zen-mode-button-component branch from d5e2933 to 4bd294b Compare April 4, 2024 10:06
@HDinger HDinger force-pushed the zen-mode-button-component branch 2 times, most recently from e9b74fd to e845815 Compare April 4, 2024 11:11
@HDinger HDinger force-pushed the zen-mode-button-component branch from e845815 to 4ee4c9a Compare April 4, 2024 11:20
@HDinger HDinger merged commit a113cec into main Apr 4, 2024
28 of 29 checks passed
@HDinger HDinger deleted the zen-mode-button-component branch April 4, 2024 11:25
@openprojectci openprojectci mentioned this pull request Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants